@import '../../assets/scss/common.scss';

$size : 40px;

.container{
    display: inline-flex;
    align-items: center;
    .label{
        width: $size;
        height: $size;
        //border-radius: 50%;
        border: 1PX solid rgb(221, 221, 221);
        position: relative;
        .check{
            display: none;
            font-size: 28px;
            position: absolute;
            color: #fff;
            left: 6px;
            top: 6px;
        }
        &.checked{
            border-color: $color-primary;
            background-color: $color-primary;

            .check{
                display: block;
            }

            // .checked{
            //     content: '';
            //     position: absolute;
            //     width: 16px;
            //     height: 16px;
            //     border-radius: 50%;
            //     background: #fff;
            //     left: 50%;
            //     top: 50%;
            //     transform: translate(-50%, -50%);
            // }
        }

        &.indeterminate{
            &::after{
                content: '';
                position: absolute;
                width: $size * 0.5;
                height: $size * 0.5;
                background: $color-primary;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }
        }
    }

    .title{
        margin-left: 6px;
    }

    .Checkbox{
        display: none;
    }
}